package com.poetry.vup.common.exception;

import com.poetry.vup.common.result.BaseResult;

/**
 * 自定义异常
 * @author mileswan
 *
 */
public class KabobException extends RuntimeException {
	 
	private static final long serialVersionUID = -3411098990026381591L;

	public KabobException(BaseResult<?> apiResponse, Exception exception){
        this.apiResponse = apiResponse;
        this.exception = exception;
    }
 
    private Exception exception;
    private BaseResult<?> apiResponse;
 
    public Exception getException() {
        return exception;
    }
 
    public void setException(Exception exception) {
        this.exception = exception;
    }
 
    public BaseResult<?> getApiResponse() {
        return apiResponse;
    }
 
    public void setApiResponse(BaseResult<?> apiResponse) {
        this.apiResponse = apiResponse;
    }
}

